﻿using Microsoft.EntityFrameworkCore;
using Model;
using Model.House;
using Model.Order;

namespace Dal
{
    public class HotelDbContext : DbContext
    {
        private readonly DbContextOptions options;

        public HotelDbContext(DbContextOptions options) : base(options)
        {
            this.options = options;
        }
        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<UserInfo> Users { get; set; }  
        /// <summary>
        /// 日志表
        /// </summary>
        public DbSet<Nlog> Nlogs { get; set; }
        /// <summary>
        /// 酒店类型
        /// </summary>
        public DbSet<HotelType> HotelTypes { get; set; }
        /// <summary>
        /// 酒店
        /// </summary>
        public DbSet<Hotel> Hotel { get; set; }
        /// <summary>
        /// 房型表
        /// </summary>
        public DbSet<HouseType> HouseTypes { get; set; }
        /// <summary>
        /// 房间
        /// </summary>
        public DbSet<House> Houses { get; set; }
        /// <summary>
        /// 订单表
        /// </summary>
        public DbSet<HouseOrder> HouseOrders { get; set; }
        /// <summary>
        /// 办理入住的验证码手机号记录表
        /// </summary>
        public DbSet<CheckIn> CheckIns { get; set; }
        

    }
}
